export default class{
    id
    name = ''
    role
    videoTrack = null
    audioTrack = null
    selected = false
    isLocal = false

    constructor(id){
        this.id = id
        
    }
    setName(name){
        this.name = name
    }
    setRole(role){
        this.role = role
    }
    select(){
        this.selected = true
    }
    addTrack(track){
        const type = track.getType()
        if (type === "video") {
            this.videoTrack = track;
        } else if (type === "audio") {
            this.audioTrack = track;
        }
    }
    removeTrack(type){
        if (type === "video") {
            this.videoTrack = null
        } else if (type === "audio") {
            this.audioTrack = null;
        }
    }
}
